home *** CD-ROM | disk | FTP | other *** search
/ Delphi 2.0 - Programmer's Utilities Power Pack / Delphi 2.0 Programmer's Utilities Power Pack.iso / s_to_z / videx / testvbx.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-09-15  |  7.7 KB  |  221 lines

  1. Form1
  2. Videx VBX Text Program
  3. Form15
  4. Command3
  5. &Cancel
  6. Command2
  7. &Initialize
  8. Command1
  9.     &Download
  10. Picture1
  11. Videx1
  12. Videx
  13. Files
  14. &Files
  15. mnu_Exit
  16. &Exit
  17. Options
  18. &Options
  19. mnu_StatusText
  20. Show Status &Text
  21. mnu_ErrorMsg
  22. Show &Error Messages
  23. mnu_Program
  24. &Load Program
  25. mnu_CommPort
  26. Set Comm &Port
  27. mnu_WandID
  28. Set Wand &ID
  29. Videx1_ComInputQ
  30. vDate
  31. vTime
  32. vType
  33. Videx1_ComError
  34. vError
  35. Videx1_ComEnd"
  36. Videx1_Click
  37. @    Form_Load
  38. IFrame1_Click
  39. Picture1_Click*
  40. Command1_Click
  41. MB_YESNOz
  42. sgBox<
  43. Command2_Click
  44. ThenEndg
  45. Videx<
  46. Videx1a
  47.     VidexOpen
  48. Command3_Click
  49. VidexStart
  50. Check2_Click
  51. Check1_Click
  52. Check1"
  53. Value
  54. vSendProgram4
  55. VidexShowText
  56. Panel3D1_DragDrop
  57. Source
  58. Control
  59. Check2
  60. Pring,
  61. vFormatDate
  62. vFormatTime
  63. vLoadProgram
  64. vStart
  65. vShowStatus$
  66. els4e
  67. check
  68. InvalidateRect
  69. MyData
  70. RectK
  71. Command4_Clickr
  72. Check3_Click
  73. vShowErrorsM
  74. Check3~
  75. mnu_StatusText_Click
  76. mnu_StatusTexti
  77. mnu_ErrorMsg
  78. mnu_ProgramS
  79. menu=
  80. matchG
  81. property~
  82. mnu_CommPort_Click
  83. Answers
  84. define
  85. EN_TIMEOUT
  86. EN_FAULT
  87. EN_IOERROR`
  88. EN_UNAVAIL
  89. EN_BUFFOVERQ
  90. EN_VTIMEOUT/
  91. EN_OPENg
  92. EN_BAUDRATE\
  93.     EN_MEMORY
  94. EN_UNKNOWN
  95. EN_BADWANDID
  96. EN_NOTIMERS
  97. ES_HEAD%
  98. ES_VIDEX
  99. ES_TIMEOUT
  100. ES_FAULT
  101. ES_IOERROR
  102. ES_UNAVAIL,
  103. ES_BUFFOVER4
  104. ES_VTIMEOUT
  105. ES_OPEN
  106. ES_BAUDRATEK
  107.     ES_MEMORY,
  108. ES_UNKNOWNh
  109. ES_BADWANDID
  110. ES_NOTIMERS
  111. reader
  112. already
  113. opened
  114. Unsupported
  115. selected
  116. UnableV
  117. allocate
  118. memory
  119. queues
  120. Unknown
  121. Invalid
  122. Valid
  123. clocks
  124. timers
  125. tried
  126. messagebox
  127. Checkedk
  128. mnu_Program_Click
  129. mnu_ErrorMsg_Click
  130. mnu_WandID_Click
  131. CommPort
  132. mnu_Exit_Click
  133.     vCommPort
  134. information
  135. prior
  136. program
  137. scanning
  138. InitRecord
  139. RegularRec
  140. InitRec
  141. Command1_Click
  142.  Initiate download action to the wand=
  143. Command2_Click
  144.  Initiate Initialization of reader
  145. Command3_Click
  146.  Send Cancel command to control by setting
  147.  vStart to zero.
  148. Form_Load
  149.  Set check mark in menu item to match property
  150.  Set check mark in menu item to match property
  151.  Set check mark in menu item to match property
  152. mnu_CommPort_Click
  153.  Get a number between 0 and 4 for Comm Port=
  154.  Loop until a valid number has been enteredI
  155. Enter Comm Port (1-4)
  156. COMM PORT
  157.  Change the CommPort property to match entry
  158.  Note: CommPort Property is zero based
  159. mnu_ErrorMsg_Click
  160. mnu_Exit_Click
  161. mnu_Program_Click
  162. mnu_StatusText_Click
  163. mnu_WandID_Click
  164.  Get a number between 0 and 65535 for Wand ID=
  165.  Loop until a valid number has been enteredI
  166. Enter Wand ID (0-65535)
  167. WAND ID
  168.  Change the vID property to match entry=
  169. Videx1_Click
  170. You have clicked-on the Videx control
  171. Videx1_ComEnd
  172. ========================================================
  173. ComEnd Event has fired... 
  174. If you have more readers to talk to, set the next vID
  175. number and reset the vStart property.
  176. ========================================================
  177. Videx1_ComError
  178.  All of the communication errors have been converted
  179.  to the standard BASIC error numbers:h
  180.  Err 24 - Device time-outr
  181.  Err 25 - Device fault
  182.  Err 57 - Device I/O error
  183.  Err 68 - Device Unavailable  (Bad comm port selection)p
  184.  Err 69 - Buffer overflowb
  185.  Also, Some custom errors have been added. Many of the
  186.  errors cannot happen due to my control over events. e
  187.  For example, I set the baud rate internally and have
  188.  control over communication states.n
  189.  Too many clocks or timers would happen if you ran 32e
  190.  (maximum timers) instances of the clock program and t
  191.  then tried to run this program.  I use one timer.
  192.  Err 255 - Videx reader time-out
  193.  Err 254 - Comm port already openedr
  194.  Err 253 - Unsupported baud rate selectedr
  195.  Err 252 - Unable to allocate memory queues
  196.  Err 251 - Unknown comm error 
  197.  Err 250 - Invalid wand ID. Valid are 0-65535
  198.  Err 249 - ERROR! Too many clocks or timers"
  199.  NOTE: If vShowErrors is set to True, the Videxd
  200.  control pops-up a messagebox with the error t
  201.  information just prior to this event being called..
  202. Error Event happened. Err#
  203. Videx1_ComInput
  204.  This is where the data from the reader is sent.
  205.  vDate is the date string.   The format is set with vFormatDate property
  206.  vTime is the time string.   The format is set with vFormatTime property
  207.  vRec  is the bar code data.
  208.  vType is a flag for the type of record in the que.m
  209.    vType = 0: Not a bar code but rather the date and time of the lastr
  210.  initialization of the reader.  vRec is NULL.e
  211.    vType = 1: vRec has bar code data.c
  212.  NOTE:
  213.  In this beta version, I use a default code 3 of 9 bi-directional 
  214.  scanning program.
  215. Initialize date: 
  216. --------------------------------------------------------
  217. You can change the DATE and TIME formats with the
  218. vFormatDate and vFormatTime properties.
  219. You can also hide status text with vShowStatus property
  220. --------------------------------------------------------
  221.